resistance current and potential difference worked example